	function disconnect() {
		if(isLocalStorage) {
			localStorage.removeItem("uid");
			localStorage.removeItem("name");
			localStorage.removeItem("myfriends");
		}
	}
	
	function updateStorage(uid, name, myfriends) {
		if(isLocalStorage) {
	      	localStorage.setItem("uid", uid);
	      	localStorage.setItem("name", name);
	      	localStorage.setItem("myfriends", myfriends);
		}
	}
	
	function isConnected() {
		if(isLocalStorage) {
			return 
				localStorage.getItem("uid") != null && 
				localStorage.getItem("name") != null && 
				localStorage.getItem("myfriends") != null;
		}
		return false;
	}